/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package application;

import javax.swing.Icon;

/**
 *
 * @author Hui
 */
public class IconListItem {

    private Icon icon;
    private String text;

    public IconListItem(Icon icon, String text) {
        this.icon = icon;
        this.text = text;
    }

    public Icon getIcon() {
        return icon;
    }

    public String getText() {
        return text;
    }

    public void setIcon(Icon icon) {
        this.icon = icon;
    }

    public void setText(String text) {
        this.text = text;
    }
    public String toString(){
        StringBuilder sb = new StringBuilder();
        for(int i = 8;i<text.length();i++){
            sb.append(text.charAt(i));
        }
        return sb.toString();
    }
}


